<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>欢迎首页-azhuo商城</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="shortcut icon" href="${pageContext.request.contextPath }/image/logo/xyz.ico" type="image/x-icon" />
    <link rel="stylesheet" href="${pageContext.request.contextPath }/css/font.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath }/css/xadmin.css" />

    <script src="${pageContext.request.contextPath }/js/jquery.min.js"></script>

    <script>
        function time() {
            var vWeek, vWeek_s, vDay;
            vWeek = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
            var date = new Date();
            year = date.getFullYear();
            month = date.getMonth() + 1;
            day = date.getDate();
            hours = date.getHours();
            minutes = date.getMinutes();
            seconds = date.getSeconds();
            vWeek_s = date.getDay();
            $("#time").html(year + "年" + month + "月" + day + "日" + "\t" + toTwoNumber(hours) + ":" + toTwoNumber(minutes) + ":" + toTwoNumber(seconds) + "\t" + vWeek[vWeek_s]);

        };

        setInterval("time()", 1000); // 设置定时刷新：1秒钟

        /**
        * 对不足两位的数字进行补“0”
        */
        function toTwoNumber(num) {
            if (num < 10) {
                return "0" + num;
            }
            return num;
        }

    </script>
</head>

<body>
    <div class="x-body layui-anim layui-anim-up">
        <blockquote class="layui-elem-quote">欢迎管理员：
            <span class="x-red">${admin_user.username}</span>！当前时间:<span id="time"></span>
        </blockquote>
        <fieldset class="layui-elem-field">
            <legend>系统通知</legend>
            <div class="layui-field-box">
                <table class="layui-table" lay-skin="line">
                    <tbody>
                        <tr>
                            <td>当前没有通知，谢谢。</td>
                        </tr>
                        <tr>
                            <td>联系人：qq(1419474402),欢迎打扰！！！</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </fieldset>
    </div>
</body>

</html>